package com.hnust.root.service.forword.wx;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hnust.root.dao.entity.domain.forward.Banner;
import com.hnust.root.dao.entity.domain.forward.Topic;

import java.util.List;

public interface TopicService {

    //添加话题
    Topic addTopic(Topic topic);

    IPage<Topic> getTopTopicList(IPage<Topic> page, String university);

    boolean updateTopicById(Topic topic);

    Topic getTopicById(int id);

    List<Topic> getTopicListByUserId(String openId);

    List<Banner> getBanner(String openId);

    List<Banner> getBannerByUniversity(String university);

    boolean deleteTopicById(int topicId);
}
